package com.zb.springevent.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @Author zb
 * @Date 2025/6/16 13:30
 */
@Getter
public class UserAddEvent extends ApplicationEvent {
    private String topic;
    private String payload;

    public UserAddEvent(Object source) {
        super(source);
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public void setPayload(String payload) {
        this.payload = payload;
    }
}
